<script setup lang="ts">
import Children from "./components/Children.vue";
import {onMounted, ref} from "vue";

const target = ref(null)

onMounted(() => {
  /*获取子组件实例的属性和方法*/
  console.log(target.value.count)
})
</script>

<template>
  <Children ref="target"></Children>
</template>
